.class public Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;
.super Ljava/lang/Object;
.source "AnimatedViewSwitch.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$OnfisrtAnimationEndListener;
    }
.end annotation


# direct methods
.method public static customAnimation(Landroid/content/Context;Landroid/view/View;Landroid/view/View;III)V
    .locals 6

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    move p5, p4

    .line 93
    :goto_0
    invoke-static {p0, p5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object p5

    if-eqz p1, :cond_1

    if-nez p2, :cond_2

    :cond_1
    mul-int/lit8 p3, p3, 0x2

    :cond_2
    move v5, p3

    .line 96
    div-int/lit8 p3, v5, 0x2

    int-to-long v0, p3

    invoke-virtual {p5, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V

    if-eqz p1, :cond_3

    .line 99
    new-instance p3, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$3;

    move-object v0, p3

    move-object v1, p1

    move-object v2, p2

    move-object v3, p0

    move v4, p4

    invoke-direct/range {v0 .. v5}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$3;-><init>(Landroid/view/View;Landroid/view/View;Landroid/content/Context;II)V

    invoke-virtual {p5, p3}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    :cond_3
    if-eqz p1, :cond_4

    .line 118
    invoke-virtual {p1, p5}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_1

    .line 119
    :cond_4
    invoke-virtual {p2, p5}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    :goto_1
    return-void
.end method

.method public static customAnimation(Landroid/content/Context;Landroid/view/View;Landroid/view/View;IIILlt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$OnfisrtAnimationEndListener;)V
    .locals 7

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    move p5, p4

    .line 54
    :goto_0
    invoke-static {p0, p5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object p5

    if-eqz p1, :cond_1

    if-nez p2, :cond_2

    :cond_1
    mul-int/lit8 p3, p3, 0x2

    :cond_2
    move v6, p3

    .line 57
    div-int/lit8 p3, v6, 0x2

    int-to-long v0, p3

    invoke-virtual {p5, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V

    if-eqz p1, :cond_3

    .line 60
    new-instance p3, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$2;

    move-object v0, p3

    move-object v1, p6

    move-object v2, p1

    move-object v3, p2

    move-object v4, p0

    move v5, p4

    invoke-direct/range {v0 .. v6}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$2;-><init>(Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$OnfisrtAnimationEndListener;Landroid/view/View;Landroid/view/View;Landroid/content/Context;II)V

    invoke-virtual {p5, p3}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    :cond_3
    if-eqz p1, :cond_4

    .line 81
    invoke-virtual {p1, p5}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_1

    :cond_4
    if-eqz p6, :cond_5

    .line 84
    invoke-interface {p6}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$OnfisrtAnimationEndListener;->onAnimationEnd()Z

    .line 85
    :cond_5
    invoke-virtual {p2, p5}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    :goto_1
    return-void
.end method

.method public static popOutToPopIn(Landroid/content/Context;Landroid/view/View;Landroid/view/View;I)V
    .locals 3

    if-eqz p1, :cond_0

    const v0, 0x7f01002a

    goto :goto_0

    :cond_0
    const v0, 0x7f010028

    .line 21
    :goto_0
    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    if-eqz p1, :cond_1

    if-nez p2, :cond_2

    :cond_1
    mul-int/lit8 p3, p3, 0x2

    .line 24
    :cond_2
    div-int/lit8 v1, p3, 0x2

    int-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    if-eqz p1, :cond_3

    .line 27
    new-instance v1, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$1;

    invoke-direct {v1, p1, p2, p0, p3}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$1;-><init>(Landroid/view/View;Landroid/view/View;Landroid/content/Context;I)V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    :cond_3
    if-eqz p1, :cond_4

    .line 46
    invoke-virtual {p1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    goto :goto_1

    .line 47
    :cond_4
    invoke-virtual {p2, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    :goto_1
    return-void
.end method

.method public static slideOuttoRight(Landroid/content/Context;Landroid/view/View;I)V
    .locals 2

    const v0, 0x7f01002e

    .line 126
    invoke-static {p0, v0}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object p0

    int-to-long v0, p2

    .line 127
    invoke-virtual {p0, v0, v1}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 128
    new-instance p2, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$4;

    invoke-direct {p2, p1}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch$4;-><init>(Landroid/view/View;)V

    invoke-virtual {p0, p2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 140
    invoke-virtual {p1, p0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    return-void
.end method
